<template>
  <div id="app">
    <el-container>
      <el-header>
        <Header></Header>
      </el-header>
      <el-main>
       

      
      <NavMenu :navMenus="menuData"></NavMenu>
 
    <router-view></router-view>
 
      </el-main>
    </el-container>


  </div>
</template>
<script>
import Header from './components/header/Header.vue';
import NavMenu from '@/components/base/NavMenu.vue'
export default {
  name: '',
  components: {
    Header,
    NavMenu,
  },
  data() {
    return {
      // activeIndex: '1',
      activeIndex2:'1',
      menuData: [
        {
          /* 一级*/
          entity: {
            id: 0,
            name: "home",
            icon: "icon-diannao",
            alias: "主页",
            value: "/home",
          },
        },
        {
          /* 一级*/

          entity: {
            id: 1,
            name: "analysis",
            icon: "icon-shujufenxi-liuliangfenxi",
            alias: "运行分析",
            value: "/analysis",
          },
          /*二级*/
        },
        {
          //一级
          entity: {
            id: 2,
            name: "energy",
            icon: "icon-nengxiaoguanli",
            alias: "能耗能效",
            value: "/energy",
          },
          //二级
        },
        {
          //一级
          entity: {
            id: 3,
            name: "equipment",
            icon: "icon-shebeiguanli",
            alias: "设备管理",
            value: "/material_config/index",
          },
          //er级
          
        },
        {
          //一级
          entity: {
            id: 4,
            name: "evaluation",
            icon: "icon-pingjia",
            alias: "运行评价",
            value: "/equipment",
          },
          // er级
          
        },
        {
          //一级
          entity: {
            id: 5,
            name: "fault",
            icon: "icon-zonghezhenduan",
            alias: "故障诊断",
            // value: "/fault",
          },
          //er级
          childs: [
            {
              entity: {
                id: 5-1,
                name: "timedelay",
       
                alias: "延时故障诊断",
                value: { path: "/timedelay" }
              }
            },
            {
              entity: {
                id: 5-2,
                name: "timelymanner",
             
                alias: "及时故障诊断",
                value: { path: "/timelymanner" }
              }
            },
          ]
        },
        {
          //一级
          entity: {
            id: 6,
            name: "senior",
            icon: "icon-gaojishezhi",
            alias: "高级",
            value: "/senior",
          },
          //er级
        },
      ],
    }
  },
  methods: {
   
  },
  // mounted() {
  //   this.$router.push("/");
  // },
}
</script>
<style lang="less">
.el-main{
  font-size: 0.2rem;
}

</style>
